export default {
  methods: {
    resize: function () {
      this.$nextTick(() => {
        const borderWidth = this.config.bordered ? this.style.borderWidth : 0;
        this.style.height = this.$refs.widget.clientHeight + borderWidth;
      });
    }
  },
  watch: {
    'style.paddingLeft': 'resize',
    'style.paddingRight': 'resize'
  }
};
